<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:>
<head>
    <title>Insert title here</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Hello, Bootstrap Table!</title>
    <!-- 最新 Bootstrap4 核心 CSS 文件 -->
    <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js"></script>
    <!-- bootstrap.bundle.min.js 用于弹窗、提示、下拉菜单，包含了 popper.min.js -->
    <script	src="https://cdn.staticfile.org/popper.js/1.16.0/umd/popper.min.js"></script>
    <!-- 最新的 Bootstrap4 核心 JavaScript 文件 -->
    <script	src="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/js/bootstrap.min.js"></script>
    <!-- DaterangePicker -->
    <link rel="stylesheet" type="text/css" media="all" href="../../static/daterangepicker/daterangepicker.css" />
    <!-- BootStrapValidator -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/jquery.bootstrapvalidator/0.5.3/css/bootstrapValidator.min.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery.bootstrapvalidator/0.5.3/js/bootstrapValidator.min.js"></script>
    <script src="../../static/js/functions.js"></script>
    <script th:src="@{/static/js/functions.js}"></script>
</head>
<body>
<div class="row">
    <div class="col-md-10 offset-md-1">
        <form class="form" id="regForm" th:method="post" th:action="@{/admin/UpdataUser}">
            <div class="modal-body">
                <div class="form-group row">
                    <div class="col-md-2">
                        <label for="username">用户名</label>
                    </div>
                    <input type="hidden" name="user_id" th:value="${userList.user_id}">
                    <div class="col-md-6">
                        <input type="text" id="user_name" name="user_name"
                               class="form-control input-sm" placeholder="用户名" required  th:value="${userList.user_name}"/><span
                            id="result"></span>
                    </div>
                </div>
                <div class="form-group row">
                    <div class="col-md-2">
                        <label for="password">密码</label>
                    </div>
                    <div class="col-md-6">
                        <input type="password" id="password" name="password"
                               class="form-control input-sm" placeholder="密码" required />
                    </div>
                </div>



                <div class="form-group row">
                    <div class="col-md-2">
                        <label for="real_name">姓名</label>
                    </div>
                    <div class="col-md-6">
                        <input type="text" id="real_name" name="real_name"
                               class="form-control input-sm" placeholder="姓名" th:value="${userList.real_name}"/>
                    </div>
                </div>

                <div class="form-group row">
                    <div class="col-md-2">
                        <label for="age">年龄</label>
                    </div>
                    <div class="col-md-6">
                        <input type="text" id="age" name="age"
                               class="form-control input-sm" placeholder="姓名" th:value="${userList.age}"/>
                    </div>
                </div>


                <div class="form-group row">
                    <div class="col-md-2">
                        <label for="gender">性别</label>
                    </div>
                    <div class="col-md-6">
                        <div class="form-check form-check-inline">
                            <input type="radio" class="form-check-input" name="gender"
                                   value="1"  th:field="*{userList.gender}">
                            <label class="form-check-label" for="gender">男</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input type="radio" class="form-check-input" name="gender"
                                   value="0" th:field="*{userList.gender}">
                            <label class="form-check-label" for="gender" >女</label>
                        </div>
                    </div>
                </div>
           </div>

            <div class="form-group row">
                <div class="col-md-2">
                    <label for="phone">手机</label>
                </div>
                <div class="col-md-6">
                    <input type="text" id="phone" name="phone"
                           class="form-control input-sm" placeholder="手机" th:value="${userList.phone}"/>
                </div>
            </div>

            <div class="form-group row">
                <div class="col-md-2">
                    <label for="email">邮箱</label>
                </div>
                <div class="col-md-6">
                    <input type="text" id="email" name="email"
                           class="form-control input-sm" placeholder="邮箱" th:value="${userList.email}"/>
                </div>
            </div>

            <div class="modal-footer">
                <div class="form-group">
                    <div class="text-center">
                        <button class="btn btn-primary" type="submit">确定</button>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <button class="btn btn-secondary" type="reset">重置</button>
                    </div>
                </div>
            </div>

        </form>
    </div>
</div>
</body>
</html>